<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>接受微博</title>
<script src="/js/jquery/jquery.js"></script>
</head>
<body>

{%$g_show.request_info.content%}
<br>
<br>
{%section name=count loop=$g_show.bless_list%}
{%$g_show.bless_list[count].content%}
<br>
{%/section%}





<input type="hidden" id="request_id" value="{%$g_show.request_info.id%}">
<input type="hidden" id="mid" value="{%$g_show.request_info.mid%}">
<input type="hidden" id="open_id" value="{%$g_show.request_info.open_id%}">
<input type="text" value="" id="com_content">
<input type="submit" class="form_submit" value="确认">

</body>

<script>

$(".form_submit").bind("click",function(e){
	
var accept = $(".choose").find(":radio:checked").val();	

var need_type = $(".detail_choose").find(":radio:checked").val();

var request_id = $("#request_id").val();
var mid = $("#mid").val();
var open_id = $("#open_id").val();
var content = $("#com_content").val();


	$.ajax({
		url:"bless_post.php",
		type:"post",
		data:"request_id="+request_id+"&mid="+mid+"&open_id="+open_id+"&content="+content,
		dataType:"json",
		complete:function(xhr,txtStatus){
			if(txtStatus == "success"){
				var result = eval("("+xhr.responseText+")");

				if(result.error == "0"){
					alert("success")	
				}else{
					alert(result.errmsg)	
				}
				
			}else{
				alert("request fail")	
			}
		}
	});

	
})
</script>
</html>		
		